﻿using JetBrains.Annotations;
using MyLifeVn.AddThis.Models;
using Orchard.ContentManagement.Handlers;
using Orchard.Data;

namespace MyLifeVn.AddThis.Handlers
{
    [UsedImplicitly]
    public class AddThisSettingsPartHandler : ContentHandler
    {
        public AddThisSettingsPartHandler(IRepository<AddThisSettingsPartRecord> repository)
        {
            Filters.Add(new ActivatingFilter<AddThisSettingsPart>("Site"));
            Filters.Add(StorageFilter.For(repository));
        }
    }
}